<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <title>图片懒加载</title>

    <link rel="stylesheet" href="css/index.css">
</head>

<body>
    <div class="main">
        <div class="imgBox">
            <img class="imgLazyLoad" data-src="img/1.jpg">
        </div>
        <div class="imgBox">
            <img class="imgLazyLoad" data-src="img/2.jpg">
        </div>
        <div class="imgBox">
            <img class="imgLazyLoad" data-src="img/3.jpg">
        </div>
        <div class="imgBox">
            <img class="imgLazyLoad" data-src="img/4.jpg">
        </div>
        <div class="imgBox">
            <img class="imgLazyLoad" data-src="img/5.jpg">
        </div>
        <div class="imgBox">
            <img class="imgLazyLoad" data-src="img/6.jpg">
        </div>
        <div class="imgBox">
            <img class="imgLazyLoad" data-src="img/7.jpg">
        </div>
        <div class="imgBox">
            <img class="imgLazyLoad" data-src="img/8.jpg">
        </div>
        <div class="imgBox">
            <img class="imgLazyLoad" data-src="img/9.jpg">
        </div>
        <div class="imgBox">
            <img class="imgLazyLoad" data-src="img/10.jpg">
        </div>
        <div class="imgBox">
            <img class="imgLazyLoad" data-src="img/11.jpg">
        </div>
        <div class="imgBox">
            <img class="imgLazyLoad" data-src="img/12.jpg">
        </div>
        <div class="imgBox">
            <img class="imgLazyLoad" data-src="img/13.jpg">
        </div>
        <div class="imgBox">
            <img class="imgLazyLoad" data-src="img/14.jpg">
        </div>
        <div class="imgBox">
            <img class="imgLazyLoad" data-src="img/15.jpg">
        </div>
    </div>
    <script src="js/index.js"></script>
</body>

</html>
